<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  
</head>

<body>
  <div id="app">
    <ul>
      <li v-for="stu in arr">
        <p>姓名：{{stu.userName}}</p>
        <p>年龄：{{stu.age}}</p>
        <p>性别：{{stu.gender === 0 ? '女' : '男'}}</p>
      </li>
    </ul>
  </div>
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#app',
      data: {
        arr: [
          {
            id:1,
            userName: '小明',
            age: 18,
            gender: 1
          },
          {
            id:2,
            userName: '小花',
            age: 19,
            gender: 0
          },
          {
            id:3,
            userName: '小红',
            age: 20,
            gender: 0
          }
        ]
      }
    })
  </script>
</body>

</html>